﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Temple.aspx.cs" Inherits="Temple" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>
<html>
<head>

   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
     <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../css/plugins/footable/footable.core.css" rel="stylesheet" />
</head>

<body class="gray-bg">
<form id="form1" runat="server" class="form-horizontal">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>
                            模板管理</h5>
                        
                        <div class="ibox-tools">
                               <a href="Temple.aspx" class="btn btn-primary btn-xs"><i class="fa fa-refresh"> &nbsp;&nbsp; 刷 新</i></a>
                          
                      </div>
                    </div>
                    <div class="ibox-content">
               
    <asp:Repeater ID="rptList" runat="server" >
    <HeaderTemplate>
 
   <table class="footable table table-stripped toggle-arrow-tiny"  data-page-size="99999">
      <tr>
    
        <th >标题</th>
        <th>大小</th>
        <th>日期</th>
      </tr>


      
      </HeaderTemplate>
      <ItemTemplate>

        <tr>
      
          <td >
	          <div>&nbsp;

	          <img src='../50/images/icon/<%#Eval("FlieType")%>.gif'  border="0" align="absmiddle" alt="" />
	          <a  onclick=EditTemple('<%# GetLink(Eval("Name"),Eval("FlieType")) %>') ><%# Eval("Name") %></a>
	          </div>	
	        </td>
          <td ><div align="center"><%# Eval("Size") %></div></td>
          <td ><div align="center"><%# Eval("LastUpdated") %></div></td>
        </tr>
      </ItemTemplate>
      <FooterTemplate>
      </table>
      </FooterTemplate>
      </asp:Repeater>    
      
     
                   </div>
                </div>
            </div>
        </div>
    </div>
    </form>



      <!-- 全局js -->
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

      <!-- 自定js -->

    <script src="../js/plugins/footable/footable.all.min.js" type="text/javascript"></script>
    <script src="../js/content.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/layer/layer.js"></script>

    <script type="text/javascript">
        $(document).ready(function () { $(".footable").footable(); });
    </script>
    <script type="text/javascript">
 


        function EditTemple(utlID)
       {
           layer.open({
               type: 2,
               title: '修改自定义标签',
               shadeClose: true,
               shade: 0.8,
               area: ['100%', '100%'],
               content: utlID,  //iframe的url
               end: function () {

                   location.reload();

               }
           });
       }

    </script>
 
</body>
</html>
